package com.freak.kotlinfitnessserver.constant.fitness

import java.util.UUID

object FitnessProtocolConstant {
    // 健身器材服务，用于与对端同步设备的Workout状态、Workout数据。
    const val FitnessMachineServiceString: String = "00001826-0000-1000-8000-00805f9b34fb"

    val FitnessMachineService: UUID = UUID.fromString("00001826-0000-1000-8000-00805f9b34fb")

    // 描述设备支持的能力 read
    val FitnessMachineFeature: UUID = UUID.fromString("00002ACC-0000-1000-8000-00805f9b34fb")

    // 上报跑步机、走步机实时运动数据 Notify
    val TreadmillData: UUID = UUID.fromString("00002ACD-0000-1000-8000-00805f9b34fb")

    // 上报椭圆机实时运动数据 Notify
    val CrossTrainerData: UUID = UUID.fromString("00002ACE-0000-1000-8000-00805f9b34fb")

    // 上报划船机实时运动数据 Notify
    val RowerData: UUID = UUID.fromString("00002AD1-0000-1000-8000-00805f9b34fb")

    // 上报单车实时运动数据 Notify
    val IndoorBikeData: UUID = UUID.fromString("00002AD2-0000-1000-8000-00805f9b34fb")

    // 上报设备状态数据 Read/Notify
    val TrainingStatus: UUID = UUID.fromString("00002AD3-0000-1000-8000-00805f9b34fb")

    // 上报支持的速度范围 read 跑步机、单车
    val SupportedSpeedRange: UUID = UUID.fromString("00002AD4-0000-1000-8000-00805f9b34fb")

    // 上报支持的坡度范围 read 跑步机
    val SupportedInclinationRange: UUID = UUID.fromString("00002AD5-0000-1000-8000-00805f9b34fb")

    // 上报支持的阻力范围 read 跑步机、单车、划船机、椭圆机
    val SupportedResistanceLevelRange: UUID =
        UUID.fromString("00002AD6-0000-1000-8000-00805f9b34fb")

    // 上报支持的心率范围 read 跑步机、单车、椭圆机
    val SupportedHeartRateRange: UUID = UUID.fromString("00002AD7-0000-1000-8000-00805f9b34fb")

    // 上报支持的功率范围 read 跑步机、单车、划船机、椭圆机
    val SupportedPowerRange: UUID = UUID.fromString("00002AD8-0000-1000-8000-00805f9b34fb")

    // 控制健身设备的状态暂停、恢复等 Write, Indicate
    val FitnessMachineControlPoint: UUID = UUID.fromString("00002AD9-0000-1000-8000-00805f9b34fb")

    // 上报健身设备的运动状态变更 Notify
    val FitnessMachineStatus: UUID = UUID.fromString("00002ADA-0000-1000-8000-00805f9b34fb")

    val Descriptor: UUID = UUID.fromString("00002902-0000-1000-8000-00805f9b34fb")
    val Descriptor_USER: UUID = UUID.fromString("00002901-0000-1000-8000-00805f9b34fb")
}